home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 32 / Mac Magazin and MacEasy Magazine CD - Issue 32.iso / Grafik & Text / OzTeX3.0 / TeX-inputs / LaTeX / graphics / dvipsone.def < prev    next >
Text File  |  1997-03-07  |  5KB  |  147 lines

  1. %%
  2. %% This is file `dvipsone.def',
  3. %% generated with the docstrip utility.
  4. %%
  5. %% The original source files were:
  6. %%
  7. %% drivers.dtx  (with options: `tiffrules,dvipsone,color1,dosrules,psrules')
  8. %% 
  9. %% drivers.dtx Copyright (C) 1994      David Carlisle Sebastian Rahtz
  10. %%             Copyright (C) 1995 1996 David Carlisle
  11. %%
  12. %% This file is part of the Standard LaTeX `Graphics Bundle'.
  13. %%
  14. %% It should be distributed *unchanged* and together with all other
  15. %% files in the graphics bundle. The file 00readme.txt contains a list
  16. %% of all of these files.
  17. %%
  18. %% A modified version of this file may be distributed, but it should
  19. %% be distributed with a *different* name. Changed files must be
  20. %% distributed *together with a complete and unchanged* distribution
  21. %% of these files.
  22. %%
  23. \ProvidesFile{dvipsone.def}
  24.         [1996/12/12 v3.0d Driver-dependant file (DPC,SPQR)]
  25. \def\c@lor@arg#1{%
  26.   \dimen@#1\p@
  27.   \ifdim\dimen@<\z@\dimen@\maxdimen\fi
  28.   \ifdim\dimen@>\p@
  29.     \PackageError{color}{Argument `#1' not in range [0,1]}\@ehd
  30.   \fi}
  31. \def\color@gray#1#2{%
  32.   \c@lor@arg{#2}%
  33.   \edef#1{gray #2}%
  34.   }
  35. \def\color@cmyk#1#2{\c@lor@@cmyk#2\@@#1}
  36. \def\c@lor@@cmyk#1,#2,#3,#4\@@#5{%
  37.   \c@lor@arg{#4}%
  38.   \c@lor@arg{#1}%
  39.   \c@lor@arg{#2}%
  40.   \c@lor@arg{#3}%
  41.   \edef#5{cmyk #1 #2 #3 #4}%
  42.   }
  43. \def\color@rgb#1#2{\c@lor@@rgb#2\@@#1}
  44. \def\c@lor@@rgb#1,#2,#3\@@#4{%
  45.   \c@lor@arg{#1}%
  46.   \c@lor@arg{#2}%
  47.   \c@lor@arg{#3}%
  48.   \edef#4{rgb #1 #2 #3}%
  49.   }
  50. \def\color@RGB#1#2{\c@lor@@RGB#2\@@#1}
  51. \def\c@lor@@RGB#1,#2,#3\@@#4{%
  52.  \c@lor@RGB@rgb{#1}\@tempa
  53.  \c@lor@RGB@rgb{#2}\@tempb
  54.  \c@lor@RGB@rgb{#3}\@tempc
  55.  \c@lor@@rgb\@tempa,\@tempb,\@tempc\@@#4%
  56.   }
  57. \def\c@lor@RGB@rgb#1#2{%
  58.   \dimen@#1\p@
  59.   \divide\dimen@\@cclv
  60.   \edef#2{\strip@pt\dimen@}}
  61. \def\color@hsb#1#2{\c@lor@@hsb#2\@@#1}
  62. \def\c@lor@@hsb#1,#2,#3\@@#4{%
  63.   \c@lor@arg{#1}%
  64.   \c@lor@arg{#2}%
  65.   \c@lor@arg{#3}%
  66.   \edef#4{hsb #1 #2 #3}%
  67.   }
  68. \def\color@named#1#2{\c@lor@@named#2,,\@@#1}
  69. \def\c@lor@@named#1,#2,#3\@@#4{%
  70.   \@ifundefined{col@#1}%
  71.     {\PackageError{color}{Undefined color `#1'}\@ehd}%
  72.   {\edef#4{\csname col@#1\endcsname}}%
  73.   }
  74. \def\c@lor@to@ps#1 #2\@@{\csname c@lor@ps@#1\endcsname#2 \@@}
  75. \def\c@lor@ps@#1 #2\@@{TeXDict begin #1 end}
  76. \def\c@lor@ps@rgb#1\@@{#1 setrgbcolor}
  77. \def\c@lor@ps@hsb#1\@@{#1 sethsbcolor}
  78. \def\c@lor@ps@cmyk#1\@@{#1 setcmykcolor}
  79. \def\c@lor@ps@gray#1\@@{#1 setgray}
  80. \def\current@color{gray 0}
  81. \def\set@color{%
  82.           \special{color push}\special{color \current@color
  83.                           }\aftergroup\reset@color}
  84. \def\reset@color{\special{%
  85.         color pop}}
  86. \def\set@page@color{\special{%
  87.         background \current@color}}
  88. \def\define@color@named#1#2{%
  89.    \expandafter\edef\csname col@#1\endcsname{#2}}
  90. \def\Ginclude@eps#1{%
  91.  \message{<#1>}%
  92.   \bgroup
  93.   \def\@tempa{!}%
  94.   \dimen@\Gin@req@width
  95.   \dimen@ii.1bp%
  96.   \divide\dimen@\dimen@ii
  97.   \@tempdima\Gin@req@height
  98.   \divide\@tempdima\dimen@ii
  99.     \special{PSfile="#1"\space
  100.       llx=\Gin@llx\space
  101.       lly=\Gin@lly\space
  102.       urx=\Gin@urx\space
  103.       ury=\Gin@ury\space
  104.       \ifx\Gin@scalex\@tempa\else rwi=\number\dimen@\space\fi
  105.       \ifx\Gin@scaley\@tempa\else rhi=\number\@tempdima\space\fi
  106.       \ifGin@clip clip\fi}%
  107.   \egroup}
  108. \def\Ginclude@tiff#1{%
  109. \message{<#1>}%
  110.  \special{insertimage: #1 \number\Gin@req@width\space
  111.      \number\Gin@req@height}}
  112. \def\Ginclude@wmf#1{%
  113.   \message{<#1>}%
  114.   \def\@tempa{!}%
  115.   \ifx\Gin@scaley\@tempa\let\Gin@scaley\@empty\fi
  116.   \ifx\Gin@scalex\@tempa\let\Gin@scalex\Gin@scaley\fi
  117.   \special{insertmf: #1 \Gin@scalex\space\Gin@scaley}}
  118. \def\Gin@PS@raw#1{\special{ps: #1}}
  119. \def\Grot@start{%
  120.  \special{ps: gsave currentpoint
  121.  currentpoint translate \Grot@angle\space
  122.  rotate neg exch neg exch translate}}
  123. \def\Grot@end{\special{ps: currentpoint grestore moveto}}
  124. \def\Gscale@start{\special{ps:  currentpoint currentpoint translate
  125.   \Gscale@x\space \Gscale@y\space scale neg exch neg exch translate}}
  126. \def\Gscale@end{\special{ps:  currentpoint currentpoint translate
  127.   1 \Gscale@x\space div 1 \Gscale@y\space div scale
  128.   neg exch neg exch translate}}
  129. \@namedef{Gin@rule@.wmf}#1{{wmf}{}{#1}}
  130. \@namedef{Gin@rule@.clp}#1{{wmf}{}{#1}}
  131. \def\Gin@PS@raw#1{\special{ps: #1}}
  132. \def\Gin@PS@restored#1{\special{" #1}}
  133. \def\Gin@PS@literal@header#1{\AtBeginDvi{\special{headertext=#1}}}
  134. \def\Gin@PS@file@header#1{\AtBeginDvi{\special{header=#1}}}
  135. \def\Gin@extensions{.eps,.ps}
  136. \@namedef{Gin@rule@.ps}#1{{eps}{.ps}{#1}}
  137. \@namedef{Gin@rule@.eps}#1{{eps}{.eps}{#1}}
  138. \@namedef{Gin@rule@*}#1{{eps}{\Gin@ext}{#1}}
  139. \def\Gin@extensions{.eps,.ps,.pcx,.bmp}
  140. \@namedef{Gin@rule@.pcx}#1{{bmp}{}{#1}}
  141. \@namedef{Gin@rule@.bmp}#1{{bmp}{}{#1}}
  142. \@namedef{Gin@rule@.msp}#1{{bmp}{}{#1}}
  143. \@namedef{Gin@rule@.tif}#1{{tiff}{}{#1}}
  144. \endinput
  145. %%
  146. %% End of file `dvipsone.def'.
  147.